
package com.be.beadmin.basicData.repository;

import com.be.beadmin.basicData.entity.MaterialInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
* @author cms
* @date 2023-12-07
**/
public interface MaterialInfoRepository extends JpaRepository<MaterialInfo, String>, JpaSpecificationExecutor<MaterialInfo> {

    MaterialInfo findMaterialInfoByIdAndDelete(String id, Integer delete);

    MaterialInfo findMaterialInfoById(String id);

    List<MaterialInfo> findMaterialInfoByDelete(Integer delete);

    MaterialInfo findMaterialInfoByMaterialCode(String materialCode);

    List<MaterialInfo> findMaterialInfoByMaterialPropertyAndDelete(String materialProperty, int delete);

    MaterialInfo findMaterialInfoByMaterialCodeAndDelete(String materialCode, Integer delete);
}